package br.com.playonline.rest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import br.com.playonline.bussines.PagamentoBU;
import br.com.playonline.dto.BoletoDTO;
import br.com.playonline.dto.PagamentoDTO;

@RestController
@RequestMapping(value = "/pagamento")
public class PagamentoRest {
	
	@Autowired
	PagamentoBU pagamentoBU;
	
	@RequestMapping(value = "/inserirPagamento",method = RequestMethod.POST)
	public @ResponseBody PagamentoDTO inserirPagamento(@RequestBody String parametro){
		return this.pagamentoBU.inserirPagamento(parametro);
	}
	
}
